package com.msb.common.exception;

import com.msb.common.enums.ExceptionEnums;

/**
 * @Author: lmf
 * @Create: 2025/3/8 17:24
 * Description: 优雅的抛出异常
 */
public class GraceException {
    public static void display(ExceptionEnums e){
        throw new ApiException(e);
    }

    public static void display(String msg, Integer code){
        throw new ApiException(msg,code);
    }
}
